home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Apple II / Essentials / Essentials.sea / APW Interfaces / CInclude / QDAux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  5.1 KB  |  186 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: QDAux.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-93
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __QUICKDRAW__
  14. #include <QUICKDRAW.h>
  15. #endif
  16.  
  17. #ifndef __QDAUX__
  18. #define __QDAUX__
  19.  
  20.  
  21. /*
  22.     PicInfo - The following picture
  23.     opcodes are for reference only!!
  24. */
  25.  
  26. #define frameVerb 0x00
  27. #define picNop 0x00
  28. #define drawCharVerb 0x00
  29. #define paintVerb 0x01
  30. #define picClipRgn 0x01
  31. #define drawTextVerb  0x01
  32. #define eraseVerb 0x02
  33. #define picBkPat 0x02
  34. #define drawCStrVerb 0x02
  35. #define invertVerb 0x03
  36. #define picTxFont 0x03
  37. #define fillVerb 0x04
  38. #define picTxFace 0x04
  39. #define picTxMode 0x05
  40. #define picSpExtra 0x06
  41. #define picPnSize 0x07
  42. #define picPnMode 0x08
  43. #define picPnPat 0x09
  44. #define picThePat 0x0A
  45. #define picFillPat 0x0A  /* 10 */  /* Please use picThePat */
  46. #define picOvSize 0x0B
  47. #define picOrigin 0x0C
  48. #define picTxSize 0x0D
  49. #define picFGColor 0x0E
  50. #define picBGColor 0x0F
  51. #define picTxRatio 0x10
  52. #define picVersion 0x11
  53. #define picChExtra 0x12  /* 18 */
  54. #define picPnMask 0x13  /* 19 */
  55. #define picArcRot 0x14  /* 20 */
  56. #define picFontFlags 0x15  /* 21 */
  57. #define lineNoun 0x20
  58. #define picLine 0x20
  59. #define picLineFrom 0x21
  60. #define picShortL 0x22
  61. #define picShortLine 0x22  /* 34 */
  62. #define picShortLFrom 0x23
  63. #define picLongText 0x28
  64. #define picDHText 0x29
  65. #define picDVText 0x2A
  66. #define picDVDHText 0x2B
  67. #define rectNoun 0x30
  68. #define rRectNoun 0x40
  69. #define ovalNoun 0x50
  70. #define arcNoun 0x60
  71. #define polyNoun 0x70
  72. #define rgnNoun 0x80
  73. #define mapNoun 0x90
  74. #define picBitsRect 0x90
  75. #define picBitsRgn 0x91
  76. #define picPBitsRect 0x98
  77. #define picPBitsRgn 0x99
  78. #define picShortComment 0xA0
  79. #define picLongComment 0xA1
  80. #define picEnd 0xFF
  81.  
  82. /* SeedFill/CalcMask Masks */
  83. #define resMode640PMask 0x00
  84. #define resMode640DMask 0x01
  85. #define resMode320Mask 0x02
  86. #define destModeCopyMask 0x0000
  87. #define destModeLeaveMask 0x1000
  88. #define destModeOnesMask 0x2000
  89. #define destModeClrToZeros 0x2000  /* 8192 */
  90. #define destModeZerosMask 0x3000
  91. #define destModeClrToOnes 0x3000  /* 12288 */
  92.  
  93. /* Error Codes */
  94. #define badRectSize 0x1211
  95. #define destModeError 0x1212
  96. #define badPictureOpcode 0x121F
  97. #define badGetSysIconInput 0x1230
  98.  
  99. /* GetSysIcon constants */
  100. #define fUseOpenFolders 0x0004
  101. #define getFileIcon 0x0000
  102. #define getDeviceIcon 0x0001
  103. #define getMiscIcon 0x0002
  104. #define desktopSysIcon 0x0000
  105. #define padlockSysIcon 0x0001
  106. #define upArrowSysIcon 0x0002
  107. #define downArrowSysIcon 0x0003
  108. #define boxDownArrowSysIcon 0x0004
  109.  
  110. /* WhooshRect constants */
  111. #define whooshOut 0x80000000L
  112. #define whooshIn  0L
  113. #define fLocalCoordinates 0x40000000L
  114. #define fSilent 0x20000000L
  115.  
  116. /* Other Constants */
  117. #define fTextJust 0x0008
  118.  
  119. /* DrawStringWidth flag values */
  120. #define dswNoCondense 0x8000
  121. #define dswCondense 0x0000
  122. #define dswNoTruncate 0x0000
  123. #define dswTruncLeft 0x2000
  124. #define dswTruncCenter 0x4000
  125. #define dswTruncRight 0x6000
  126. #define dswPString 0x0000
  127. #define dswCString 0x0004
  128. #define dswWString 0x0008
  129. #define dswStrIsPtr 0x0000
  130. #define dswStrIsHandle 0x0001
  131. #define dswStrIsResource 0x0002
  132.  
  133. /* ColorTable flag values */
  134. #define ctUse640Colors 0x8000
  135. #define ctNoCtlNewRes 0x4000
  136. #define ctIncludeMenuBar 0x2000
  137.  
  138. struct QDIconRecord {
  139.    Word iconType;
  140.    Word iconSize;
  141.    Word iconHeight;
  142.    Word iconWidth;
  143.    Byte iconImage[1];
  144.    Byte iconMask[1];
  145. } ;
  146. typedef struct QDIconRecord QDIconRecord, *QDIconRecordPtr, **QDIconRecordHndl;
  147. struct Picture {
  148.    Word picSCB;
  149.    Rect picFrame;
  150.    Word pVersion; /* Followed by picture opcodes  */
  151. } ;
  152. typedef struct Picture Picture, *PicPtr, **PicHndl;
  153. struct LeakTable {
  154.    Word leakCount;
  155.    Word leakColors[16];
  156. } ;
  157. typedef struct LeakTable LeakTable, *LeakTablePtr;
  158. extern pascal void CalcMask() inline(0x0E12,dispatcher);
  159. extern pascal void ClosePicture() inline(0xB904,dispatcher);
  160. extern pascal void CopyPixels() inline(0x0912,dispatcher);
  161. extern pascal void DrawIcon() inline(0x0B12,dispatcher);
  162. extern pascal void DrawPicture() inline(0xBA04,dispatcher);
  163. extern pascal void KillPicture() inline(0xBB04,dispatcher);
  164. extern pascal PicHndl OpenPicture() inline(0xB704,dispatcher);
  165. extern pascal void PicComment() inline(0xB804,dispatcher);
  166. extern pascal void QDAuxBootInit() inline(0x0112,dispatcher);
  167. extern pascal void QDAuxReset() inline(0x0512,dispatcher);
  168. extern pascal void QDAuxShutDown() inline(0x0312,dispatcher);
  169. extern pascal void QDAuxStartUp() inline(0x0212,dispatcher);
  170. extern pascal Boolean QDAuxStatus() inline(0x0612,dispatcher);
  171. extern pascal Word QDAuxVersion() inline(0x0412,dispatcher);
  172. extern pascal void SeedFill() inline(0x0D12,dispatcher);
  173. extern pascal void SpecialRect() inline(0x0C12,dispatcher);
  174. extern pascal void WaitCursor() inline(0x0A12,dispatcher);
  175.  
  176. extern pascal QDIconRecordPtr GetSysIcon() inline(0x0F12,dispatcher);
  177. extern pascal RegionHndl PixelMap2Rgn() inline(0x1012,dispatcher);
  178. extern pascal void IBeamCursor() inline(0x1312,dispatcher);
  179. extern pascal void WhooshRect() inline(0x1412,dispatcher);
  180.  
  181. extern pascal void DrawStringWidth() inline(0x1512,dispatcher);
  182. extern pascal Handle UseColorTable() inline(0x1612,dispatcher);
  183. extern pascal void RestoreColorTable() inline(0x1712,dispatcher);
  184.  
  185. #endif
  186.